package cn.qio.channel.handler;

import cn.qio.event.Event;

/**
 * 通道事件处理接口
 * 
 * @author chenhua
 *
 */
public interface ChannelHandler {

	void connectionEstablished(Event event);

	void connectionClosed(Event event);

	void messageReceived(Event event);

	void messageSent(Event event);

	void sessionIdle(Event event);

	void exceptionCaught(Event event, Throwable cause);

}
